@extends('layouts.base')

@section('navbar')
<section class="content-header">
    <h1>新增</h1>
    <ol class="breadcrumb">
        <li><i class="fa fa-dashboard"></i> 当前位置</li>
        <li class="active">新增</li>
    </ol>
</section>
@endsection

@section('content')
<div class="box box-primary">
@include('validator')
    <div class="box-body">
    <!-- 1. 提交到指定方法 -->
        <!-- <form class="form-horizontal" method="post" action="{{ url('student/save') }}"> -->
        <!-- 2. 提交到当前方法 -->
        <form class="form-horizontal" method="post" action="">

<!-- 生成一个隐藏的 input 表单，带一个 token 字段 -->
{{ csrf_field() }}


<div class="form-group">
    <label for="name" class="col-sm-2 control-label">标题</label>

    <div class="col-sm-5">
    <input type="text" name="News[title]" 
class="form-control" id="name" placeholder="请输入作者">

    </div>
    <div class="col-sm-5">
    <p class="form-control-static text-danger">{{ $errors->first('News.title') }}</p>
    </div>
</div>

<div class="form-group">
    <label for="name" class="col-sm-2 control-label">作者</label>

    <div class="col-sm-5">
    <input type="text" name="News[author]" 
class="form-control" id="name" placeholder="请输入作者">
    </div>
    <div class="col-sm-5">
    <p class="form-control-static text-danger">{{ $errors->first('News.author') }}</p>
    </div>
</div>

<div class="form-group">
    <label for="name" class="col-sm-2 control-label">内容</label>

    <div class="col-sm-5">
    <input type="text" name="News[content]"  
class="form-control" id="name" placeholder="请输入作者">
    </div>
    <div class="col-sm-5">
    <p class="form-control-static text-danger">{{ $errors->first('News.content') }}</p>
    </div>
</div>
<div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
        <button type="submit" class="btn btn-primary">提交</button>
    </div>
</div>

</form>
    </div>
        
    </div>
    <div class="box-footer">
        <div class="alert alert-info alert-dismissible">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            <h4><i class="icon fa fa-info"></i> 温馨提示</h4>
            <ol>
                <li>温馨提示温馨提示温馨提示</li>
                <li>温馨提示温馨提示温馨提示</li>
            </ol>
        </div>
    </div>
</div>
@endsection

@section('scripts')

@endsection